


<!doctype html>
<html lang="zh" class="no-js">
  <head>
    
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width,initial-scale=1">
      
      
        <link rel="canonical" href="https://gitee.io/admin-guide/upgrade/1.4.5-1.4.10/">
      
      
        <meta name="author" content="anonymous">
      
      <link rel="shortcut icon" href="../../../img/facio.ico">
      <meta name="generator" content="mkdocs-1.1.2, mkdocs-material-5.3.3">
    
    
      
        <title>1.4.5-1.4.10 升级到 最新 - My Docs</title>
      
    
    
      <link rel="stylesheet" href="../../../assets/stylesheets/main.fe0cca5b.min.css">
      
        <link rel="stylesheet" href="../../../assets/stylesheets/palette.a46bcfb3.min.css">
      
      
        
        
        <meta name="theme-color" content="#4caf50">
      
    
    
    
      
        <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700%7CRoboto+Mono&display=fallback">
        <style>body,input{font-family:"Roboto",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono",SFMono-Regular,Consolas,Menlo,monospace}</style>
      
    
    
    
      <link rel="stylesheet" href="../../../css/extra.css">
    
    
      
        
<script>window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create","UA-147297392-3","docs.jumpserver.org"),ga("set","anonymizeIp",!0),ga("send","pageview"),document.addEventListener("DOMContentLoaded",function(){document.forms.search&&document.forms.search.query.addEventListener("blur",function(){if(this.value){var e=document.location.pathname;ga("send","pageview",e+"?q="+this.value)}})}),document.addEventListener("DOMContentSwitch",function(){ga("send","pageview")})</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>
      
    
    
  </head>
  
  
    
    
    
    <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="red">
  
    
    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
    <label class="md-overlay" for="__drawer"></label>
    <div data-md-component="skip">
      
        
        <a href="#145-1410" class="md-skip">
          跳转至
        </a>
      
    </div>
    <div data-md-component="announce">
      
    </div>
    
      <header class="md-header" data-md-component="header">
  <nav class="md-header-nav md-grid" aria-label="Header">
    <a href="https://gitee.io" title="My Docs" class="md-header-nav__button md-logo" aria-label="My Docs">
      
  
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 003-3 3 3 0 00-3-3 3 3 0 00-3 3 3 3 0 003 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54z"/></svg>

    </a>
    <label class="md-header-nav__button md-icon" for="__drawer">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
    </label>
    <div class="md-header-nav__title" data-md-component="header-title">
      
        <div class="md-header-nav__ellipsis">
          <span class="md-header-nav__topic md-ellipsis">
            My Docs
          </span>
          <span class="md-header-nav__topic md-ellipsis">
            
              1.4.5-1.4.10 升级到 最新
            
          </span>
        </div>
      
    </div>
    
      <label class="md-header-nav__button md-icon" for="__search">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
      </label>
      
<div class="md-search" data-md-component="search" role="dialog">
  <label class="md-search__overlay" for="__search"></label>
  <div class="md-search__inner" role="search">
    <form class="md-search__form" name="search">
      <input type="text" class="md-search__input" name="query" aria-label="搜索" placeholder="搜索" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active">
      <label class="md-search__icon md-icon" for="__search">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
      </label>
      <button type="reset" class="md-search__icon md-icon" aria-label="Clear" data-md-component="search-reset" tabindex="-1">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
      </button>
    </form>
    <div class="md-search__output">
      <div class="md-search__scrollwrap" data-md-scrollfix>
        <div class="md-search-result" data-md-component="search-result">
          <div class="md-search-result__meta">
            Initializing search
          </div>
          <ol class="md-search-result__list"></ol>
        </div>
      </div>
    </div>
  </div>
</div>
    
    
      <div class="md-header-nav__source">
        
<a href="https://gitee.com" title="前往 GitHub 仓库" class="md-source">
  <div class="md-source__icon md-icon">
    
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05L244 40.45a28.87 28.87 0 00-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 01-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 000 40.81l195.61 195.6a28.86 28.86 0 0040.8 0l194.69-194.69a28.86 28.86 0 000-40.81z"/></svg>
  </div>
  <div class="md-source__repository">
    Gitee Star
  </div>
</a>
      </div>
    
  </nav>
</header>
    
    <div class="md-container" data-md-component="container">
      
        
      
      
        
      
      <main class="md-main" data-md-component="main">
        <div class="md-main__inner md-grid">
          
            
              <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
                <div class="md-sidebar__scrollwrap">
                  <div class="md-sidebar__inner">
                    <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
  <label class="md-nav__title" for="__drawer">
    <a href="https://gitee.io" title="My Docs" class="md-nav__button md-logo" aria-label="My Docs">
      
  
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 003-3 3 3 0 00-3-3 3 3 0 00-3 3 3 3 0 003 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54z"/></svg>

    </a>
    My Docs
  </label>
  
    <div class="md-nav__source">
      
<a href="https://gitee.com" title="前往 GitHub 仓库" class="md-source">
  <div class="md-source__icon md-icon">
    
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05L244 40.45a28.87 28.87 0 00-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 01-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 000 40.81l195.61 195.6a28.86 28.86 0 0040.8 0l194.69-194.69a28.86 28.86 0 000-40.81z"/></svg>
  </div>
  <div class="md-source__repository">
    Gitee Star
  </div>
</a>
    </div>
  
  <ul class="md-nav__list" data-md-scrollfix>
    
      
      
      


  <li class="md-nav__item">
    <a href="../../.." title="总体介绍" class="md-nav__link">
      总体介绍
    </a>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2">
    
    <label class="md-nav__link" for="nav-2">
      Docker 服务部署
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="Docker 服务部署" data-md-level="1">
      <label class="md-nav__title" for="nav-2">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        Docker 服务部署
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../../docker/install/" title="docker 环境安装" class="md-nav__link">
      docker 环境安装
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../docker/harbor/" title="harbor 安装" class="md-nav__link">
      harbor 安装
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../docker/kubeadm.md" title="Kubeadm 安装 Kubernetes 集群" class="md-nav__link">
      Kubeadm 安装 Kubernetes 集群
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
    
    <label class="md-nav__link" for="nav-3">
      Linux 服务部署
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="Linux 服务部署" data-md-level="1">
      <label class="md-nav__title" for="nav-3">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        Linux 服务部署
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/zookeeper.md" title="zookeeper 部署" class="md-nav__link">
      zookeeper 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/kafka.md" title="kafka 部署" class="md-nav__link">
      kafka 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/hadoop.md" title="hadoop 部署" class="md-nav__link">
      hadoop 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/hbase.md" title="hbase 部署" class="md-nav__link">
      hbase 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/apache-storm.md" title="apache-storm 部署" class="md-nav__link">
      apache-storm 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/opentsdb.md" title="opentsdb 部署" class="md-nav__link">
      opentsdb 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/mysql.md" title="mysql 部署" class="md-nav__link">
      mysql 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/redis.md" title="redis 部署" class="md-nav__link">
      redis 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/fastdfs.md" title="fastdfs 部署" class="md-nav__link">
      fastdfs 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../linux/nginx.md" title="nginx 部署" class="md-nav__link">
      nginx 部署
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
    
    <label class="md-nav__link" for="nav-4">
      安装配置
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="安装配置" data-md-level="1">
      <label class="md-nav__title" for="nav-4">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        安装配置
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/step_by_step/" title="安装文档" class="md-nav__link">
      安装文档
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/setup_by_fast/" title="极速部署" class="md-nav__link">
      极速部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/docker_install/" title="容器部署" class="md-nav__link">
      容器部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-4-4" type="checkbox" id="nav-4-4">
    
    <label class="md-nav__link" for="nav-4-4">
      分布式部署
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="分布式部署" data-md-level="2">
      <label class="md-nav__title" for="nav-4-4">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        分布式部署
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/setup_by_prod/" title="环境说明" class="md-nav__link">
      环境说明
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/prod/distributed_01/" title="NFS 部署" class="md-nav__link">
      NFS 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/prod/distributed_02/" title="Tengine 部署" class="md-nav__link">
      Tengine 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/prod/distributed_03/" title="Mariadb 部署" class="md-nav__link">
      Mariadb 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/prod/distributed_04/" title="Redis 部署" class="md-nav__link">
      Redis 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/prod/distributed_05/" title="Core 部署" class="md-nav__link">
      Core 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/prod/distributed_06/" title="Koko 部署" class="md-nav__link">
      Koko 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/prod/distributed_07/" title="Guacamole 部署" class="md-nav__link">
      Guacamole 部署
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/ansible_install/" title="Ansible 部署" class="md-nav__link">
      Ansible 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/install_security/" title="安全建议" class="md-nav__link">
      安全建议
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../install/uninstall/" title="卸载文档" class="md-nav__link">
      卸载文档
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      

  


  <li class="md-nav__item md-nav__item--active md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
    
    <label class="md-nav__link" for="nav-5">
      管理文档
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="管理文档" data-md-level="1">
      <label class="md-nav__title" for="nav-5">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        管理文档
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../quick_start/" title="快速入门" class="md-nav__link">
      快速入门
    </a>
  </li>

        
          
          
          

  


  <li class="md-nav__item md-nav__item--active md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-5-2" type="checkbox" id="nav-5-2" checked>
    
    <label class="md-nav__link" for="nav-5-2">
      更新升级
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="更新升级" data-md-level="2">
      <label class="md-nav__title" for="nav-5-2">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        更新升级
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../1.0.0-1.4.3/" title="1.0.0-1.4.3 升级到 1.4.4" class="md-nav__link">
      1.0.0-1.4.3 升级到 1.4.4
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../1.4.4/" title="1.4.4 升级到 1.4.5" class="md-nav__link">
      1.4.4 升级到 1.4.5
    </a>
  </li>

        
          
          
          

  


  <li class="md-nav__item md-nav__item--active">
    
    <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
    
      
    
    
      <label class="md-nav__link md-nav__link--active" for="__toc">
        1.4.5-1.4.10 升级到 最新
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2z"/></svg>
        </span>
      </label>
    
    <a href="./" title="1.4.5-1.4.10 升级到 最新" class="md-nav__link md-nav__link--active">
      1.4.5-1.4.10 升级到 最新
    </a>
    
      
<nav class="md-nav md-nav--secondary" aria-label="目录">
  
  
    
  
  
    <label class="md-nav__title" for="__toc">
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
      </span>
      目录
    </label>
    <ul class="md-nav__list" data-md-scrollfix>
      
        <li class="md-nav__item">
  <a href="#_1" class="md-nav__link">
    升级步骤
  </a>
  
    <nav class="md-nav" aria-label="升级步骤">
      <ul class="md-nav__list">
        
          <li class="md-nav__item">
  <a href="#1" class="md-nav__link">
    1. 更新代码
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#2" class="md-nav__link">
    2. 更新配置文件
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#3" class="md-nav__link">
    3. 更新依赖
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#4-core" class="md-nav__link">
    4. 启动 core
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#5-nginx" class="md-nav__link">
    5. 修改 nginx 配置
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#6-lina" class="md-nav__link">
    6. 更新 lina
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#7-luna" class="md-nav__link">
    7. 更新 luna
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#8-koko" class="md-nav__link">
    8. 更新 koko
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#9-guacamole" class="md-nav__link">
    9. 更新 guacamole
  </a>
  
</li>
        
      </ul>
    </nav>
  
</li>
      
    </ul>
  
</nav>
    
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../1.5.0/" title="1.5.0 及之后版本升级到 最新" class="md-nav__link">
      1.5.0 及之后版本升级到 最新
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../other/" title="其他部署方式升级说明" class="md-nav__link">
      其他部署方式升级说明
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../migration/" title="迁移文档" class="md-nav__link">
      迁移文档
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-5-4" type="checkbox" id="nav-5-4">
    
    <label class="md-nav__link" for="nav-5-4">
      资产要求
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="资产要求" data-md-level="2">
      <label class="md-nav__title" for="nav-5-4">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        资产要求
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../assets/telnet/" title="Tetnet" class="md-nav__link">
      Tetnet
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../assets/linux_ssh/" title="Linux SSH" class="md-nav__link">
      Linux SSH
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../assets/linux_vnc/" title="Linux VNC" class="md-nav__link">
      Linux VNC
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../assets/windows_ssh/" title="Windows SSH" class="md-nav__link">
      Windows SSH
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../assets/windows_vnc/" title="Windows VNC" class="md-nav__link">
      Windows VNC
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../assets/windows_rdp/" title="Windows RDP" class="md-nav__link">
      Windows RDP
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-5-5" type="checkbox" id="nav-5-5">
    
    <label class="md-nav__link" for="nav-5-5">
      身份认证
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="身份认证" data-md-level="2">
      <label class="md-nav__title" for="nav-5-5">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        身份认证
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../authentication/cas/" title="CAS 认证" class="md-nav__link">
      CAS 认证
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../authentication/mfa/" title="MFA 认证" class="md-nav__link">
      MFA 认证
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../authentication/ldap/" title="LDAP 认证" class="md-nav__link">
      LDAP 认证
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../authentication/openid/" title="OpenID 认证" class="md-nav__link">
      OpenID 认证
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../authentication/radius/" title="Radius 认证" class="md-nav__link">
      Radius 认证
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../organization/" title="组织管理" class="md-nav__link">
      组织管理
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../proxy/" title="反向代理" class="md-nav__link">
      反向代理
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
    
    <label class="md-nav__link" for="nav-6">
      开发文档
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="开发文档" data-md-level="1">
      <label class="md-nav__title" for="nav-6">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        开发文档
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../../dev/rest_api/" title="API文档" class="md-nav__link">
      API文档
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item">
    <a href="../../../issues/list/" title="问题清单" class="md-nav__link">
      问题清单
    </a>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
    
    <label class="md-nav__link" for="nav-8">
      用户文档
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="用户文档" data-md-level="1">
      <label class="md-nav__title" for="nav-8">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        用户文档
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../../user-guide/assets/user-asset/" title="我的资产" class="md-nav__link">
      我的资产
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-8-2" type="checkbox" id="nav-8-2">
    
    <label class="md-nav__link" for="nav-8-2">
      我的应用
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="我的应用" data-md-level="2">
      <label class="md-nav__title" for="nav-8-2">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        我的应用
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../../user-guide/applications/user-database-app/" title="数据库应用" class="md-nav__link">
      数据库应用
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../user-guide/ops/command-executions/create/" title="命令执行" class="md-nav__link">
      命令执行
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../user-guide/users/profile/" title="个人信息" class="md-nav__link">
      个人信息
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../user-guide/terminal/web-terminal/" title="Web终端" class="md-nav__link">
      Web终端
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../user-guide/terminal/web-sftp/" title="文件管理" class="md-nav__link">
      文件管理
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
    
    <label class="md-nav__link" for="nav-9">
      帮助文档
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="帮助文档" data-md-level="1">
      <label class="md-nav__title" for="nav-9">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        帮助文档
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../../faq/core/" title="Core 常见问题" class="md-nav__link">
      Core 常见问题
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../faq/luna/" title="Luna 常见问题" class="md-nav__link">
      Luna 常见问题
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../faq/koko/" title="koko 常见问题" class="md-nav__link">
      koko 常见问题
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../faq/guacamole/" title="Guacamole 问题" class="md-nav__link">
      Guacamole 问题
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
    
    <label class="md-nav__link" for="nav-10">
      关于
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>
      </span>
    </label>
    <nav class="md-nav" aria-label="关于" data-md-level="1">
      <label class="md-nav__title" for="nav-10">
        <span class="md-nav__icon md-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
        </span>
        关于
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../../about/contributor/" title="贡献列表" class="md-nav__link">
      贡献列表
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../about/change_log/" title="更新说明" class="md-nav__link">
      更新说明
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../about/contact/" title="联系方式" class="md-nav__link">
      联系方式
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../../about/commercial/" title="商业产品" class="md-nav__link">
      商业产品
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
  </ul>
</nav>
                  </div>
                </div>
              </div>
            
            
              <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
                <div class="md-sidebar__scrollwrap">
                  <div class="md-sidebar__inner">
                    
<nav class="md-nav md-nav--secondary" aria-label="目录">
  
  
    
  
  
    <label class="md-nav__title" for="__toc">
      <span class="md-nav__icon md-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
      </span>
      目录
    </label>
    <ul class="md-nav__list" data-md-scrollfix>
      
        <li class="md-nav__item">
  <a href="#_1" class="md-nav__link">
    升级步骤
  </a>
  
    <nav class="md-nav" aria-label="升级步骤">
      <ul class="md-nav__list">
        
          <li class="md-nav__item">
  <a href="#1" class="md-nav__link">
    1. 更新代码
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#2" class="md-nav__link">
    2. 更新配置文件
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#3" class="md-nav__link">
    3. 更新依赖
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#4-core" class="md-nav__link">
    4. 启动 core
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#5-nginx" class="md-nav__link">
    5. 修改 nginx 配置
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#6-lina" class="md-nav__link">
    6. 更新 lina
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#7-luna" class="md-nav__link">
    7. 更新 luna
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#8-koko" class="md-nav__link">
    8. 更新 koko
  </a>
  
</li>
        
          <li class="md-nav__item">
  <a href="#9-guacamole" class="md-nav__link">
    9. 更新 guacamole
  </a>
  
</li>
        
      </ul>
    </nav>
  
</li>
      
    </ul>
  
</nav>
                  </div>
                </div>
              </div>
            
          
          <div class="md-content">
            <article class="md-content__inner md-typeset">
              
                
                
                  
                
                
                <h1 id="145-1410">1.4.5-1.4.10 版本升级到最新版本<a class="headerlink" href="#145-1410" title="Permanent link">&para;</a></h1>
<div class="admonition warning">
<p class="admonition-title">升级及迁移请保持 SECRET_KEY 与旧版本一致, 否则会导致数据库加密数据无法解密</p>
</div>
<ul>
<li>请先关闭 JumpServer 组件</li>
<li>更新前请一定要做好备份 数据库 和 jumpserver 源代码的工作</li>
</ul>
<div class="highlight"><pre><span></span><code>mv /opt/jumpserver /opt/jumpserver_bak
mysqldump -uroot -p jumpserver &gt; /opt/jumpserver_bak.sql
</code></pre></div>

<h2 id="_1">升级步骤<a class="headerlink" href="#_1" title="Permanent link">&para;</a></h2>
<div class="admonition warning">
<p class="admonition-title">请务必认真详细阅读每一个文字并理解后才能操作升级事宜</p>
<p>请先检查自己各组件的当前版本<br />
本文档仅适合 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.4.10 版本<br />
从 1.4.x 版本开始, mysql 版本需要大于等于 5.6, mariadb 版本需要大于等于 5.5.56<br />
更新配置文件需要把对应旧版本的设置复制到新的配置文件</p>
</div>
<h3 id="1">1. 更新代码<a class="headerlink" href="#1" title="Permanent link">&para;</a></h3>
<div class="highlight"><pre><span></span><code><span class="nb">cd</span> /opt
wget -O jumpserver.tar.gz https://github.com/jumpserver/jumpserver/archive/2.0.0.tar.gz
</code></pre></div>

<details class="question"><summary>网络有问题访问 <a href="http://demo.jumpserver.org/download/jumpserver/">此处</a> 快速下载</summary><div class="highlight"><pre><span></span><code>wget https://github.com/jumpserver/lina/releases/download/2.0.0/jumpserver.tar.gz
</code></pre></div>

</details>
<div class="highlight"><pre><span></span><code>tar -xf jumpserver.tar.gz
mv jumpserver-2.0.0 jumpserver
</code></pre></div>

<div class="admonition tip">
<p class="admonition-title">自行替换 /opt 为你安装的目录</p>
</div>
<h3 id="2">2. 更新配置文件<a class="headerlink" href="#2" title="Permanent link">&para;</a></h3>
<div class="highlight"><pre><span></span><code><span class="nb">cd</span> /opt/jumpserver
cp config_example.yml config.yml
</code></pre></div>

<div class="highlight"><pre><span></span><code>vi config.yml
</code></pre></div>

<div class="admonition warning">
<p class="admonition-title">把旧配置文件 jumpserver_bak/config.py 的相关内容填到新的配置文件 config.yml 里面</p>
<p>请勿照抄, 以下模板仅供参考
<div class="highlight"><pre><span></span><code><span class="c1"># SECURITY WARNING: keep the secret key used in production secret!</span>
<span class="c1"># 加密秘钥 生产环境中请修改为随机字符串，请勿外泄, 可使用命令生成</span>
<span class="c1"># cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 49;echo</span>
<span class="nt">SECRET_KEY</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">W5Ic3fMXNZ0p5RIy5DhJYJllppTfcfkW8Yuf94VBMfpcssbfu</span>

<span class="c1"># SECURITY WARNING: keep the bootstrap token used in production secret!</span>
<span class="c1"># 预共享Token coco和guacamole用来注册服务账号，不在使用原来的注册接受机制</span>
<span class="nt">BOOTSTRAP_TOKEN</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">zxffNymGjP79j6BN</span>

<span class="c1"># Development env open this, when error occur display the full process track, Production disable it</span>
<span class="c1"># DEBUG 模式 开启DEBUG后遇到错误时可以看到更多日志</span>
<span class="nt">DEBUG</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">false</span>

<span class="c1"># DEBUG, INFO, WARNING, ERROR, CRITICAL can set. See https://docs.djangoproject.com/en/1.10/topics/logging/</span>
<span class="c1"># 日志级别</span>
<span class="nt">LOG_LEVEL</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">ERROR</span>
<span class="c1"># LOG_DIR:</span>

<span class="c1"># Session expiration setting, Default 24 hour, Also set expired on on browser close</span>
<span class="c1"># 浏览器Session过期时间，默认24小时, 也可以设置浏览器关闭则过期</span>
<span class="c1"># SESSION_COOKIE_AGE: 86400</span>
<span class="nt">SESSION_EXPIRE_AT_BROWSER_CLOSE</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">true</span>

<span class="c1"># Database setting, Support sqlite3, mysql, postgres ....</span>
<span class="c1"># 数据库设置</span>
<span class="c1"># See https://docs.djangoproject.com/en/1.10/ref/settings/#databases</span>

<span class="c1"># SQLite setting:</span>
<span class="c1"># 使用单文件sqlite数据库</span>
<span class="c1"># DB_ENGINE: sqlite3</span>
<span class="c1"># DB_NAME:</span>

<span class="c1"># MySQL or postgres setting like:</span>
<span class="c1"># 使用Mysql作为数据库</span>
<span class="nt">DB_ENGINE</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">mysql</span>
<span class="nt">DB_HOST</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">127.0.0.1</span>
<span class="nt">DB_PORT</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">3306</span>
<span class="nt">DB_USER</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">jumpserver</span>
<span class="nt">DB_PASSWORD</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">rBi41SrDqlX4zsx9e1L0cqTP</span>
<span class="nt">DB_NAME</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">jumpserver</span>

<span class="c1"># When Django start it will bind this host and port</span>
<span class="c1"># ./manage.py runserver 127.0.0.1:8080</span>
<span class="c1"># 运行时绑定端口</span>
<span class="nt">HTTP_BIND_HOST</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">0.0.0.0</span>
<span class="nt">HTTP_LISTEN_PORT</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">8080</span>
<span class="nt">WS_LISTEN_PORT</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">8070</span>

<span class="c1"># Use Redis as broker for celery and web socket</span>
<span class="c1"># Redis配置</span>
<span class="nt">REDIS_HOST</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">127.0.0.1</span>
<span class="nt">REDIS_PORT</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">6379</span>
<span class="nt">REDIS_PASSWORD</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">ZhYnLrodpmPncovxJTnRyiBs</span>
<span class="c1"># REDIS_DB_CELERY: 3</span>
<span class="c1"># REDIS_DB_CACHE: 4</span>

<span class="c1"># Use OpenID authorization</span>
<span class="c1"># 使用OpenID 来进行认证设置</span>
<span class="c1"># BASE_SITE_URL: http://localhost:8080</span>
<span class="c1"># AUTH_OPENID: false  # True or False</span>
<span class="c1"># AUTH_OPENID_SERVER_URL: https://openid-auth-server.com/</span>
<span class="c1"># AUTH_OPENID_REALM_NAME: realm-name</span>
<span class="c1"># AUTH_OPENID_CLIENT_ID: client-id</span>
<span class="c1"># AUTH_OPENID_CLIENT_SECRET: client-secret</span>
<span class="c1"># AUTH_OPENID_IGNORE_SSL_VERIFICATION: True</span>
<span class="c1"># AUTH_OPENID_SHARE_SESSION: True</span>

<span class="c1"># Use Radius authorization</span>
<span class="c1"># 使用Radius来认证</span>
<span class="c1"># AUTH_RADIUS: false</span>
<span class="c1"># RADIUS_SERVER: localhost</span>
<span class="c1"># RADIUS_PORT: 1812</span>
<span class="c1"># RADIUS_SECRET:</span>

<span class="c1"># CAS 配置</span>
<span class="c1"># AUTH_CAS&#39;: False,</span>
<span class="c1"># CAS_SERVER_URL&#39;: &quot;http://host/cas/&quot;,</span>
<span class="c1"># CAS_ROOT_PROXIED_AS&#39;: &#39;http://jumpserver-host:port&#39;,  </span>
<span class="c1"># CAS_LOGOUT_COMPLETELY&#39;: True,</span>
<span class="c1"># CAS_VERSION&#39;: 3,</span>

<span class="c1"># LDAP/AD settings</span>
<span class="c1"># LDAP 搜索分页数量</span>
<span class="c1"># AUTH_LDAP_SEARCH_PAGED_SIZE: 1000</span>
<span class="c1">#</span>
<span class="c1"># 定时同步用户</span>
<span class="c1"># 启用 / 禁用</span>
<span class="c1"># AUTH_LDAP_SYNC_IS_PERIODIC: True</span>
<span class="c1"># 同步间隔 (单位: 时) (优先）</span>
<span class="c1"># AUTH_LDAP_SYNC_INTERVAL: 12</span>
<span class="c1"># Crontab 表达式</span>
<span class="c1"># AUTH_LDAP_SYNC_CRONTAB: * 6 * * *</span>
<span class="c1">#</span>
<span class="c1"># LDAP 用户登录时仅允许在用户列表中的用户执行 LDAP Server 认证</span>
<span class="c1"># AUTH_LDAP_USER_LOGIN_ONLY_IN_USERS: False</span>
<span class="c1">#</span>
<span class="c1"># LDAP 认证时如果日志中出现以下信息将参数设置为 0 (详情参见：https://www.python-ldap.org/en/latest/faq.html)</span>
<span class="c1"># In order to perform this operation a successful bind must be completed on the connection</span>
<span class="c1"># AUTH_LDAP_OPTIONS_OPT_REFERRALS: -1</span>

<span class="c1"># OTP settings</span>
<span class="c1"># OTP/MFA 配置</span>
<span class="c1"># OTP_VALID_WINDOW: 0</span>
<span class="c1"># OTP_ISSUER_NAME: Jumpserver</span>

<span class="c1"># Perm show single asset to ungrouped node</span>
<span class="c1"># 是否把未授权节点资产放入到 未分组 节点中</span>
<span class="c1"># PERM_SINGLE_ASSET_TO_UNGROUP_NODE: false</span>
<span class="c1">#</span>
<span class="c1"># 启用定时任务</span>
<span class="c1"># PERIOD_TASK_ENABLE: True</span>
<span class="c1">#</span>
<span class="c1"># 启用二次复合认证配置</span>
<span class="c1"># LOGIN_CONFIRM_ENABLE: False</span>
<span class="c1">#</span>
<span class="c1"># Windows 登录跳过手动输入密码</span>
<span class="nt">WINDOWS_SKIP_ALL_MANUAL_PASSWORD</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">True</span>
</code></pre></div></p>
</div>
<h3 id="3">3. 更新依赖<a class="headerlink" href="#3" title="Permanent link">&para;</a></h3>
<div class="admonition tip">
<p class="admonition-title">注意载入 py3 虚拟环境</p>
<div class="highlight"><pre><span></span><code><span class="nb">source</span> /opt/py3/bin/activate
</code></pre></div>

</div>
<div class="highlight"><pre><span></span><code>pip install wheel
pip install --upgrade pip setuptools
pip install -r requirements/requirements.txt
</code></pre></div>

<div class="admonition warning">
<p class="admonition-title">如果升级前版本是 1.4.5 请执行下面命令, 不是 1.4.5 请直接看第 5 步启动 core</p>
<p><div class="highlight"><pre><span></span><code><span class="nb">cd</span> utils
vi <span class="m">1</span>.4.4_to_1.4.5_migrations.sh
</code></pre></div>
<div class="highlight"><pre><span></span><code>#<span class="p">!</span><span class="sr">/bin/</span>bash
#

host<span class="p">=</span><span class="m">127</span>.<span class="m">0</span>.<span class="m">0</span>.<span class="m">1</span>  # 修改你的 jumpserver 数据库 ip
port<span class="p">=</span><span class="m">3306</span>       # 修改你的 jumpserver 数据库端口
username<span class="p">=</span>root
db<span class="p">=</span>jumpserver   # 修改你的 jumpserver 数据库名

echo <span class="s2">&quot;备份原来的 migrations&quot;</span>
mysqldump <span class="p">-</span><span class="k">u</span>${username} <span class="p">-</span><span class="k">h</span>${host} <span class="p">-</span>P${port} <span class="p">-</span><span class="k">p</span> ${db} django_migrations <span class="p">&gt;</span> django_migrations.sql.bak
<span class="k">ret</span><span class="p">=</span>$?

<span class="k">if</span> [ ${<span class="k">ret</span>} <span class="p">==</span> <span class="s2">&quot;0&quot;</span> ];then
    echo <span class="s2">&quot;开始使用新的migrations文件&quot;</span>
    mysql <span class="p">-</span><span class="k">u</span>${username} <span class="p">-</span><span class="k">h</span>${host} <span class="p">-</span>P${port} <span class="p">-</span><span class="k">p</span> ${db} <span class="p">&lt;</span> django_migrations.sql
<span class="k">else</span>
    echo <span class="s2">&quot;Not valid&quot;</span>
<span class="k">fi</span>
</code></pre></div></p>
</div>
<h3 id="4-core">4. 启动 core<a class="headerlink" href="#4-core" title="Permanent link">&para;</a></h3>
<div class="highlight"><pre><span></span><code><span class="nb">cd</span> /opt/jumpserver
./jms start
</code></pre></div>

<div class="admonition tip">
<p class="admonition-title">确定启动没有错误</p>
</div>
<details class="tip"><summary>可以 -d 参数在后台运行</summary><div class="highlight"><pre><span></span><code>./jms start -d  
</code></pre></div>

</details>
<h3 id="5-nginx">5. 修改 nginx 配置<a class="headerlink" href="#5-nginx" title="Permanent link">&para;</a></h3>
<div class="highlight"><pre><span></span><code>vi /etc/nginx/conf.d/jumpserver.conf
</code></pre></div>

<div class="admonition tip">
<p class="admonition-title">修改 jumpserver.conf</p>
<div class="highlight"><pre><span></span><code>server {
    listen <span class="m">80</span>;

    client_max_body_size <span class="m">100</span>m;  # 录像及文件上传大小限制

    location <span class="sr">/ui/</span> {
        try_files $uri <span class="sr">/ /</span>index.html;
        alias <span class="sr">/opt/</span>lina/;
    }

    location <span class="sr">/luna/</span> {
        try_files $uri <span class="sr">/ /</span>index.html;
        alias <span class="sr">/opt/</span>luna/;  # luna 路径<span class="p">,</span> 如果修改安装目录<span class="p">,</span> 此处需要修改
    }

    location <span class="sr">/media/</span> {
        add_header Content<span class="p">-</span>Encoding gzip;
        root <span class="sr">/opt/</span>jumpserver<span class="sr">/data/</span>;  # 录像位置<span class="p">,</span> 如果修改安装目录<span class="p">,</span> 此处需要修改
    }

    location <span class="sr">/static/</span> {
        root <span class="sr">/opt/</span>jumpserver<span class="sr">/data/</span>;  # 静态资源<span class="p">,</span> 如果修改安装目录<span class="p">,</span> 此处需要修改
    }

    location <span class="sr">/koko/</span> {
        proxy_pass       http:<span class="sr">//</span>localhost:<span class="m">5000</span>;
        proxy_buffering off;
        proxy_http_version <span class="m">1</span>.<span class="m">1</span>;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection <span class="s2">&quot;upgrade&quot;</span>;
        proxy_set_header X<span class="p">-</span>Real<span class="p">-</span>IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X<span class="p">-</span>Forwarded<span class="p">-</span>For $proxy_add_x_forwarded_for;
        access_log off;
    }

    location <span class="sr">/guacamole/</span> {
        proxy_pass       http:<span class="sr">//</span>localhost:<span class="m">8081</span>/;
        proxy_buffering off;
        proxy_http_version <span class="m">1</span>.<span class="m">1</span>;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;
        proxy_set_header X<span class="p">-</span>Real<span class="p">-</span>IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X<span class="p">-</span>Forwarded<span class="p">-</span>For $proxy_add_x_forwarded_for;
        access_log off;
    }

    location <span class="sr">/ws/</span> {
        proxy_pass http:<span class="sr">//</span>localhost:<span class="m">8070</span>;
        proxy_buffering off;
        proxy_http_version <span class="m">1</span>.<span class="m">1</span>;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection <span class="s2">&quot;upgrade&quot;</span>;
        proxy_set_header X<span class="p">-</span>Real<span class="p">-</span>IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X<span class="p">-</span>Forwarded<span class="p">-</span>For $proxy_add_x_forwarded_for;
        access_log off;
    }

    location <span class="sr">/api/</span> {
        proxy_pass http:<span class="sr">//</span>localhost:<span class="m">8080</span>;
        proxy_set_header X<span class="p">-</span>Real<span class="p">-</span>IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X<span class="p">-</span>Forwarded<span class="p">-</span>For $proxy_add_x_forwarded_for;
    }

    location <span class="sr">/core/</span> {
        proxy_pass http:<span class="sr">//</span>localhost:<span class="m">8080</span>;
        proxy_set_header X<span class="p">-</span>Real<span class="p">-</span>IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X<span class="p">-</span>Forwarded<span class="p">-</span>For $proxy_add_x_forwarded_for;
    }

    location / {
        rewrite ^<span class="sr">/(.*)$ /</span>ui/$<span class="m">1</span> last;
    }
}
</code></pre></div>

</div>
<div class="highlight"><pre><span></span><code>nginx -t
nginx -s reload
</code></pre></div>

<h3 id="6-lina">6. 更新 lina<a class="headerlink" href="#6-lina" title="Permanent link">&para;</a></h3>
<div class="highlight"><pre><span></span><code><span class="nb">cd</span> /opt
rm -rf lina lina.tar.gz
wget https://github.com/jumpserver/lina/releases/download/2.0.0/lina.tar.gz
</code></pre></div>

<details class="question"><summary>网络有问题访问 <a href="http://demo.jumpserver.org/download/lina/">此处</a> 快速下载</summary><div class="highlight"><pre><span></span><code>wget http://demo.jumpserver.org/download/lina/2.0.0/lina.tar.gz
</code></pre></div>

</details>
<div class="highlight"><pre><span></span><code>tar -xf lina.tar.gz
</code></pre></div>

<h3 id="7-luna">7. 更新 luna<a class="headerlink" href="#7-luna" title="Permanent link">&para;</a></h3>
<div class="highlight"><pre><span></span><code>cd /opt
rm -rf luna luna.tar.gz
wget https://github.com/jumpserver/luna/releases/download/2.0.0/luna.tar.gz
</code></pre></div>

<details class="question"><summary>网络有问题访问 <a href="http://demo.jumpserver.org/download/luna/">此处</a> 快速下载</summary><div class="highlight"><pre><span></span><code>wget http://demo.jumpserver.org/download/luna/2.0.0/luna.tar.gz
</code></pre></div>

</details>
<div class="highlight"><pre><span></span><code>tar -xf luna.tar.gz
</code></pre></div>

<h3 id="8-koko">8. 更新 koko<a class="headerlink" href="#8-koko" title="Permanent link">&para;</a></h3>
<ul>
<li>1.5.2 版本开始 coco 被 koko 取代, 且 coco 后续不再更新, 请手动停止并删除 coco 目录</li>
</ul>
<div class="highlight"><pre><span></span><code>docker stop jms_koko
docker rm jms_koko
</code></pre></div>

<div class="highlight"><pre><span></span><code>docker run --name jms_koko -d <span class="se">\</span>
  -p <span class="m">2222</span>:2222 -p <span class="m">127</span>.0.0.1:5000:5000 <span class="se">\</span>
  -e <span class="nv">CORE_HOST</span><span class="o">=</span>http://&lt;Jumpserver_url&gt; <span class="se">\</span>
  -e <span class="nv">BOOTSTRAP_TOKEN</span><span class="o">=</span>&lt;Jumpserver_BOOTSTRAP_TOKEN&gt; <span class="se">\</span>
  -e <span class="nv">LOG_LEVEL</span><span class="o">=</span>ERROR <span class="se">\</span>
  --restart<span class="o">=</span>always <span class="se">\</span>
  jumpserver/jms_koko:&lt;Tag&gt;
&lt;Jumpserver_url&gt; 为 jumpserver 的 url 地址, &lt;Jumpserver_BOOTSTRAP_TOKEN&gt; 需要从 jumpserver/config.yml 里面获取, 保证一致, &lt;Tag&gt; 是版本
</code></pre></div>

<div class="admonition tip">
<p class="admonition-title">例:</p>
</div>
<div class="highlight"><pre><span></span><code>docker run --name jms_koko -d
  -p <span class="m">2222</span>:2222
  -p <span class="m">127</span>.0.0.1:5000:5000
  -e <span class="nv">CORE_HOST</span><span class="o">=</span>http://192.168.244.144:8080
  -e <span class="nv">BOOTSTRAP_TOKEN</span><span class="o">=</span>zxffNymGjP79j6BN
  -e <span class="nv">LOG_LEVEL</span><span class="o">=</span>ERROR
  --restart<span class="o">=</span>always
  jumpserver/jms_koko:2.0.0
</code></pre></div>

<h3 id="9-guacamole">9. 更新 guacamole<a class="headerlink" href="#9-guacamole" title="Permanent link">&para;</a></h3>
<div class="highlight"><pre><span></span><code>docker stop jms_guacamole
docker rm jms_guacamole
</code></pre></div>

<div class="highlight"><pre><span></span><code>docker run --name jms_guacamole -d
  -p <span class="m">127</span>.0.0.1:8081:8080
  -e <span class="nv">JUMPSERVER_SERVER</span><span class="o">=</span>http://&lt;Jumpserver_url&gt;
  -e <span class="nv">BOOTSTRAP_TOKEN</span><span class="o">=</span>&lt;Jumpserver_BOOTSTRAP_TOKEN&gt;
  -e <span class="nv">GUACAMOLE_LOG_LEVEL</span><span class="o">=</span>ERROR
  jumpserver/jms_guacamole:&lt;Tag&gt;
&lt;Jumpserver_url&gt; 为 jumpserver 的 url 地址, &lt;Jumpserver_BOOTSTRAP_TOKEN&gt; 需要从 jumpserver/config.yml 里面获取, 保证一致, &lt;Tag&gt; 是版本
</code></pre></div>

<div class="admonition tip">
<p class="admonition-title">例:</p>
</div>
<div class="highlight"><pre><span></span><code>docker run --name jms_guacamole -d
  -p <span class="m">127</span>.0.0.1:8081:8080
  -e <span class="nv">JUMPSERVER_SERVER</span><span class="o">=</span>http://192.168.244.144:8080
  -e <span class="nv">BOOTSTRAP_TOKEN</span><span class="o">=</span>abcdefg1234
  -e <span class="nv">GUACAMOLE_LOG_LEVEL</span><span class="o">=</span>ERROR
  jumpserver/jms_guacamole:2.0.0
</code></pre></div>

<ul>
<li>升级完成后到 Web 会话管理 - 终端管理 查看组件是否已经在线</li>
</ul>
                
              
              
                


              
            </article>
          </div>
        </div>
      </main>
      
        
<footer class="md-footer">
  
    <div class="md-footer-nav">
      <nav class="md-footer-nav__inner md-grid" aria-label="Footer">
        
          <a href="../1.4.4/" title="1.4.4 升级到 1.4.5" class="md-footer-nav__link md-footer-nav__link--prev" rel="prev">
            <div class="md-footer-nav__button md-icon">
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
            </div>
            <div class="md-footer-nav__title">
              <div class="md-ellipsis">
                <span class="md-footer-nav__direction">
                  上一页
                </span>
                1.4.4 升级到 1.4.5
              </div>
            </div>
          </a>
        
        
          <a href="../1.5.0/" title="1.5.0 及之后版本升级到 最新" class="md-footer-nav__link md-footer-nav__link--next" rel="next">
            <div class="md-footer-nav__title">
              <div class="md-ellipsis">
                <span class="md-footer-nav__direction">
                  下一页
                </span>
                1.5.0 及之后版本升级到 最新
              </div>
            </div>
            <div class="md-footer-nav__button md-icon">
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
            </div>
          </a>
        
      </nav>
    </div>
  
  <div class="md-footer-meta md-typeset">
    <div class="md-footer-meta__inner md-grid">
      <div class="md-footer-copyright">
        
        Made with
        <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
          Material for MkDocs
        </a>
      </div>
      
    </div>
  </div>
</footer>
      
    </div>
    
      <script src="../../../assets/javascripts/vendor.d710d30a.min.js"></script>
      <script src="../../../assets/javascripts/bundle.4a5ba8d6.min.js"></script><script id="__lang" type="application/json">{"clipboard.copy": "\u590d\u5236", "clipboard.copied": "\u5df2\u590d\u5236", "search.config.lang": "ja", "search.config.pipeline": "trimmer, stemmer", "search.config.separator": "[\\uff0c\\u3002]+", "search.result.placeholder": "\u952e\u5165\u4ee5\u5f00\u59cb\u641c\u7d22", "search.result.none": "\u6ca1\u6709\u627e\u5230\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.one": "\u627e\u5230 1 \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.other": "# \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c"}</script>
      
      <script>
        app = initialize({
          base: "../../..",
          features: [],
          search: Object.assign({
            worker: "../../../assets/javascripts/worker/search.9b3611bd.min.js"
          }, typeof search !== "undefined" && search)
        })
      </script>
      
    
  </body>
</html>